package cyan.gf.control;

import javafx.beans.InvalidationListener;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.scene.control.CheckBox;

/**
 * Created by cyan on 2017/2/17.
 * Email:qsyan@vip.qq.com
 */
public class OCheckBox<T> implements ObservableValue<T> {

  public CheckBox getCheckBox() {
    return checkBox;
  }

  public void setCheckBox(CheckBox checkBox) {
    this.checkBox = checkBox;
  }

  CheckBox checkBox = new CheckBox();

  @Override
  public void addListener(ChangeListener<? super T> listener) {

  }

  @Override
  public void removeListener(ChangeListener<? super T> listener) {

  }

  @Override
  public T getValue() {
    return (T) checkBox;
  }

  @Override
  public void addListener(InvalidationListener listener) {

  }

  @Override
  public void removeListener(InvalidationListener listener) {

  }
}
